﻿using System;

namespace PowerStation.RequestModel
{
    /// <summary>
    /// 统计模型
    /// </summary>
    public class StatisticsModel
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 数据
        /// </summary>
        public decimal data { get; set; } = 0;
        /// <summary>
        /// 同比
        /// </summary>
        public decimal data_tb { get; set; } = 0;
    }

    /// <summary>
    /// 金额统计
    /// </summary>
    public class StatisticsValueModel { 
        /// <summary>
        /// 数据产生时间
        /// </summary>
        public DateTime time { get; set; }
        /// <summary>
        /// 金钱
        /// </summary>
        public decimal money { get; set; }
    }



    //移动端统计
    /// <summary>
    /// 请求类型
    /// </summary>
    public class RequestAppStatisticsModel
    {
        /// <summary>
        /// 统计类型,1表示按员工排序统计,2表示按企业排序统计,3表示按天统计,4按月统计,
        /// </summary>
        public int type { get; set; }
        /// <summary>
        /// 企业过虑,不过虑设置为0
        /// </summary>
        public int companyId { get; set; } = 0;
        /// <summary>
        /// 开始统计时间,只要到日期
        /// </summary>
        public DateTime start { get; set; }
        /// <summary>
        /// 结束统计时间,只要到日期
        /// </summary>
        public DateTime end { get; set; }
    }


    /// <summary>
    /// 统计模型
    /// </summary>
    public class AppStatisticsModel
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 销售单
        /// </summary>
        public int salesCount { get; set; } = 0;
        /// <summary>
        /// 销售单环比
        /// </summary>
        public int salesCount_tb { get; set; } = 0;
        /// <summary>
        /// 销售单金额
        /// </summary>
        public decimal money { get; set; }
        /// <summary>
        /// 销售单金额环比
        /// </summary>
        public decimal money_tb { get; set; }
    }


}
